import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
import './core/ant-design'
import './styles/index.less'
import './permission'

import './assets/icon/iconfont.js' //引入阿里巴巴图标库js
import './assets/icon/iconfont.css' //引入阿里巴巴图标库css
import { codemirror } from 'vue-codemirror'
import 'codemirror/lib/codemirror.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/elementStyle.css'




import _lodash from 'lodash'
Vue.prototype._lodash = _lodash

//切换页面让滚动条回到顶部
router.afterEach((to, from, next) => {
  window.scrollTo(0, 0)
})
Vue.use(ElementUI)

new Vue({
  router,
  store,
  codemirror,
  render: (h) => h(App),
}).$mount('#app')
